/*!
 * Ext JS Library 3.0.0
 * Copyright(c) 2006-2009 Ext JS, LLC
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
Ext.onReady(function(){
    Ext.QuickTips.init();

    var tb = new Ext.Toolbar();
    tb.render('toolbar');

    tb.add(
 {
        text: 'Registrar',
        enableToggle: true,
        toggleHandler: onItemToggle,
        pressed: true
    }, '-',
 {
        text: 'Configurar',
        enableToggle: true,
        toggleHandler: onItemToggle,
        pressed: true
    }, '-',
{
        text: 'Reportes',
        enableToggle: true,
        toggleHandler: onItemToggle,
        pressed: true
    }
);

    tb.doLayout();

    function onItemToggle(item, pressed){
        Ext.example.msg('Button Toggled', 'Button "{0}" was toggled to {1}.', item.text, pressed);
    }

});